﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Fcdbas.Platform.Interface
{
    /// <summary>
    /// Form之前的關係接口
    /// </summary>
    public interface IFormRelation<T> where T : Form
    {

        /// <summary>
        /// 第一層UI
        /// </summary>
        T FirstForm
        {
            get;
            set;
        }

        /// <summary>
        /// 上一層UI
        /// </summary>
        T PrevForm
        {
            get;
            set;
        }

        /// <summary>
        /// 下一層UI(通用Open或AddNew打開)
        /// </summary>
        T NextForm
        {
            get;
            set;
        }

        /// <summary>
        /// 如果當前UI為EditForm,則得到他的ListForm,否則為Null
        /// </summary>
        T ListForm
        {
            get;
            set;
        }

        /// <summary>
        /// 当ListForm包含在ParentChildForm中时，记录ListForm所属的ParentChildForm
        /// </summary>
        Form ParentForm
        {
            get;
            set;
        }

    }
}
